<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Basic CheckBox - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="${ctx}/statics/uimaker/easyui.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/statics/uimaker/icon.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/statics/demo/demo.css">
	<script type="text/javascript" src="${ctx}/statics/js/jquery.js"></script>
	<script type="text/javascript" src="${ctx}/statics/js/jquery.easyui.min.js"></script>
</head>
<body>
		<div id ="ckboxs" style="margin-bottom:20px" ></div>
		<script type="text/javascript">
		$.getJSON("${ctx}/resource/all", function(json){
			  for(var item in json){
				  var ckbox = json[item];
				  $("#ckboxs").append('<label class="textbox-label textbox-label-before" style="text-align: left; height: 20px; line-height: 20px;">'+ckbox.name+':</label><input type="checkbox" value="'+ckbox.id+'">&nbsp;&nbsp;');
			  }
			});
		</script>
</body>
</html>